package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.BusDesConfigDao;
import com.tbit.uqbike.client.pojo.BusDesConfig;
import com.tbit.uqbike.client.service.BusDesConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 业务提示自定义描述
 * @Date: 创建于 15:17 2020/12/30
 */
@Service
public class BusDesConfigServiceImpl implements BusDesConfigService {
    @Autowired
    private BusDesConfigDao busDesConfigDao;

    @Override
    public BusDesConfig getByAccountId(Integer accountId, Integer busType) {
        Map<String, Object> map = new HashMap<>();
        map.put("accountId", accountId);
        map.put("busType", busType);

        return busDesConfigDao.getByAccountId(map);
    }
}
